/**
 * Copyright (c) 2012 Fujian FUNO Mobile Communication Technology Co., Ltd.
 * All rights reserved by FUNO.
 */
package com.funo.ehealth.thread;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.funo.ehealth.main.BussinessProcess;

/** 
 * 线程组
 * 
 * @version V1.1
 * @author zhangguangying
 * @date 2013-1-31
 */
public class BussinessThreadGroup extends ThreadGroup {
	
	/**
	 * 线程组日志类
	 */
	private static final Log log = LogFactory.getLog(BussinessThreadGroup.class);

	/**
	 * @param name
	 */
	public BussinessThreadGroup(String name) {
		super(name);
		// TODO Auto-generated constructor stub
	}

	@Override
	public void uncaughtException(Thread t, Throwable e) {
		log.error("线程"+t.getName()+"内部发生异常", e);
		
		BussinessProcess.notifyExit();
	}
	
}
